package com.example.weight.navigation;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import androidx.appcompat.app.AppCompatActivity;

import com.example.weight.R;
import com.example.weight.greenSeasons.deodorization.DeodorizationTowerNav;
import com.example.weight.greenSeasons.deodorization.DuifeiDeodorization;
import com.example.weight.greenSeasons.deodorization.RoleSelect;
import com.example.weight.greenSeasons.deodorization.SolidLiquidDeodorization;
import com.hjq.bar.OnTitleBarListener;
import com.hjq.bar.TitleBar;

public class ShengchanxianchangChuchouNavigationActivity extends AppCompatActivity {

    private String name, factory;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_shengchanxianchang_chuchou_nav);
        Intent previousIntent = getIntent();
        name = previousIntent.getStringExtra("name");
        factory = previousIntent.getStringExtra("factory");

        TitleBar titleBar = findViewById(R.id.titleBar);
        titleBar.setOnTitleBarListener(new OnTitleBarListener() {
            @Override
            public void onLeftClick(View v) {
                finish();
            }

            @Override
            public void onTitleClick(View v) {}

            @Override
            public void onRightClick(View v) {}
        });
    }
    public void turnSolidLiquidDeodorization(View view) {
        Intent intent =new Intent(ShengchanxianchangChuchouNavigationActivity.this, SolidLiquidDeodorization.class);
        intent.putExtra("name", name);
        intent.putExtra("factory", factory);
        startActivity(intent);
    }
    public void turnDuifeiDeodorization(View view) {
        Intent intent =new Intent(ShengchanxianchangChuchouNavigationActivity.this, DuifeiDeodorization.class);
        intent.putExtra("name", name);
        intent.putExtra("factory", factory);
        startActivity(intent);
    }
    public void turnDeodorizationFacilityCheck(View view) {
        Intent intent =new Intent(ShengchanxianchangChuchouNavigationActivity.this, RoleSelect.class);
        intent.putExtra("name", name);
        intent.putExtra("factory", factory);
        startActivity(intent);
    }
    public void turnDeodorizationTower(View view) {
        Intent intent =new Intent(ShengchanxianchangChuchouNavigationActivity.this, DeodorizationTowerNav.class);
        intent.putExtra("name", name);
        intent.putExtra("factory", factory);
        startActivity(intent);
    }

}
